# jsb/lib/aliases.py
#
#

""" global aliases. """

## jsb imports

from jsb.lib.datadir import getdatadir

## basic imports

import os

## getaliases function

def getaliases():
    """ return global aliases. """
    from jsb.lib.persist import Persist
    p = Persist(getdatadir() + os.sep + "aliases")
    if not p.data: p.data = {}
    p.data['aq'] = 'quote-add'
    p.data['wq'] = 'quote-who'
    p.data['dq'] = 'quote-del'
    p.data['lq'] = 'quote-last'
    p.data['2q'] = 'quote-2'
    p.data['iq'] = 'quote-id'
    p.data['q'] = 'quote'
    p.data['sq'] = 'quote-search'
    p.data['cq'] = 'quote-count'
    p.data['karma'] = 'karma-get'
    p.data['wkd'] = 'karma-whydown'
    p.data['wku'] = 'karma-whyup'
    p.data['good'] = 'karma-good'
    p.data['bad'] = 'karma-bad'
    return p